package com.dingup.provider.mapper;

import com.dingup.api.model.sys.SysPermissionGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface SysPermissionGroupMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysPermissionGroup record);

    int insertSelective(SysPermissionGroup record);

    SysPermissionGroup selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysPermissionGroup record);

    int updateByPrimaryKey(SysPermissionGroup record);

    List<SysPermissionGroup> getUserPermissionGroupByRoleId(Integer roleId);

    List<SysPermissionGroup> getUserPermissionGroupByUserId(String userId);

    List<SysPermissionGroup> getAll();

    List<SysPermissionGroup> getByIdIn(@Param("ids") List<Integer> ids);
}